package com.devilvan.betrice.jpxgmn.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.devilvan.betrice.common.BasePo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
* @author Evad.Wu
* @Description JPXGMN-头信息表 映射
* @date 2022-11-16
*/
@Setter
@Getter
@ToString
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "JPXGMN_HEADER")

@Entity
@Table(name = "JPXGMN_HEADER")
@DynamicInsert
@EntityListeners(AuditingEntityListener.class)
@Schema(description = "JPXGMN-头信息表 映射")
public class JpxgmnHeaderPo extends BasePo implements Serializable {
    @Serial
    private static final long serialVersionUID = 7876007620124255939L;
    @Schema(description = "业务ID")
    @TableField(value = "PID")
    @Column(name = "PID", columnDefinition = "VARCHAR(128) NOT NULL COMMENT '业务ID'")
    private String pid;
    @Schema(description = "标题")
    @TableField(value = "TITLE")
    @Column(name = "TITLE", columnDefinition = "VARCHAR(256) NOT NULL COMMENT '标题'")
    private String title;
    @Schema(description = "网址")
    @TableField(value = "URL")
    @Column(name = "URL", columnDefinition = "TEXT(65,535) NOT NULL COMMENT '网址'")
    private String url;
    @Schema(description = "姓名")
    @TableField(value = "NAME")
    @Column(name = "NAME", columnDefinition = "VARCHAR(64) NOT NULL COMMENT '姓名'")
    private String name;
    @Schema(description = "页数")
    @TableField(value = "PAGE_NUM")
    @Column(name = "PAGE_NUM", columnDefinition = "INT(10) COMMENT '页数'")
    private Integer pageNum;
    @Schema(description = "系统更新时间")
    @TableField(value = "PMODIFY_TIME")
    @Column(name = "PMODIFY_TIME", columnDefinition = "DATETIME COMMENT '系统更新时间'")
    private Date pmodifyTime;
}
